
function openwin(url, winid, w, h) {
    var _left = screen.width / 2 - w / 2;
    var _top = screen.height / 2 - h / 2;

    var newwin = window
        .open(
        url,
        winid,
        "toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,fullscreen=no,copyhistory=no,top="
        + _top
        + ",left="
        + _left
        + ", width="
        + w
        + ",height=" + h);
    newwin.focus();
    return false;
}